package com.example.blog_system.service;

import com.example.blog_system.dto.CommentDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface CommentService {
    CommentDto createComment(CommentDto commentDto, Long authorId);
    void deleteComment(Long id, Long authorId);
    Page<CommentDto> getCommentsByArticle(Long articleId, Pageable pageable);
    Page<CommentDto> getCommentsByUser(Long userId, Pageable pageable);
} 